using System;
using System.Collections;
using System.Collections.Generic;
using Battle.Data;
using Core;
using Core.Data;
using UnityEngine;
using View;

public class GameMain : MonoBehaviour
{
    private static GameMain m_Instance;

    public static GameMain Instance => m_Instance;

    public Transform KingParent;

    private BattleWorld m_BattleWorld;

    private void Awake()
    {
        m_Instance = this;
        DontDestroyOnLoad(gameObject);
    }

    void Start()
    {
        BattleData data = new BattleData();
        data.KingUnitData = new UnitData();

        BattleView view = new BattleView();

        m_BattleWorld = new BattleWorld();
        m_BattleWorld.OnCreate(view, data);
    }

    void Update()
    {
    }
}